package com.okami.thread;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * @author: TanJingyu
 * @create: 2021-04-02 14:08
 **/
class QueueTest {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<String> strings = new LinkedBlockingDeque<>();

        strings.putLast("tanjingyu");

        System.out.println(strings.takeFirst());

    }

    class Demo {
        final String name = null;


    }
}
